export default [
    {id: "server", label: '服务器', active: true, path: '/main/devOpsResource/server'},
    {id: "dbBase", label: '数据库', active: false, path: '/main/devOpsResource/dbBase'},
    {id: "fileSys", label: '文件系统集群', active: false, path: '/main/devOpsResource/fileSys'},
    {id: "cacheCluster", label: '缓存集群', active: false, path: '/main/devOpsResource/cacheCluster'},
    {id: "domain", label: '域名', active: false, path: '/main/devOpsResource/domain'},
    {id: "workLoad", label: '工作负载', active: false, path: '/main/devOpsResource/workLoad'},
    {id: "appDir", label: '应用目录', active: false, path: '/main/devOpsResource/appDir'},
    {id: "dataDir", label: '数据目录', active: false, path: '/main/devOpsResource/dataDir'},
    {id: "contextPath", label: 'ContextPath', active: false, path: '/main/devOpsResource/contextPath'}
]

let _getItemObj = (id, items) => {
    let backAry=items.filter((itemObj)=>{return itemObj["id"]===id});
    if(backAry.length>0){
        return backAry[0];
    }else{
        return null;
    }
}

export {_getItemObj}